package com.swanclouds;

import com.swanclouds.api.RedfishClient;
import com.swanclouds.core.transport.Config;
import com.swanclouds.redfish.OSFactory;

/**
 * @author 张立强
 * @version jdk1.8.0
 */
public class OSUtils {

    public static RedfishClient.OSClientV1 getRedfish () {

        OSFactory.enableHttpLoggingFilter(false);
        RedfishClient.OSClientV1 redfish = OSFactory.builderV1()
               .endpoint("https://10.10.251.70")
                //.endpoint("https://10.10.22.32")
                .withConfig(Config.newConfig().withSSLVerificationDisabled().withReadTimeout(60000).withConnectionTimeout(6000))
                .credentials("redfish", "Yk1243.com", null)
                .authenticate();
        return redfish;
    }
}
